home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / admin / linuxcon.6 / linuxcon / usr / lib / linuxconf / help.eng / askrunlevel / lilo.help < prev    next >
Encoding:
Text File  |  1996-08-04  |  13.5 KB  |  328 lines

  1.   LILO configuration (LInux LOader)
  2.   Introduction
  3.  
  4.   11..  PPuurrppoossee
  5.  
  6.   _L_i_n_u_x may boot using different mechanisms. Booting involve mainly
  7.   reading and bringing a kernel file (often called zImage or vmlinuz) in
  8.   memory, then laughing it. While this sounds all simple, there is
  9.   always some quirks around. This is why booting an Operating System is
  10.   some sort of black art. Unlike many boot loader shipped with some
  11.   other commercial OSs, _L_I_L_O is fully documented and probably the most
  12.   versatile loader ... by far.
  13.  
  14.   We will first try to describe what's involved and then what you can do
  15.   with all that.
  16.  
  17.   22..  LLIILLOO pprriinncciipplleess
  18.  
  19.   Without entering too deep, lets just explain what booting a PC is all
  20.   about.
  21.  
  22.   22..11..  TThhee ffiirrsstt iinnhhaabbiittaanntt:: TThhee BBIIOOSS
  23.  
  24.   When a _P_C starts, the first program to take control is the _B_I_O_S which
  25.   is resident in _R_O_M. After initializing most hardware in your machine,
  26.   it will attempt to load a tiny program, either from the first sector
  27.   of the floppy or the first sector of the first hard drive. This
  28.   program is called the _M_a_s_t_e_r _B_o_o_t _R_e_c_o_r_d or _M_B_R for short.
  29.  
  30.   22..22..  FFrroomm tthhee _M_B_R ooff tthhee hhaarrdd ddrriivvee ttoo tthhee _O_S
  31.  
  32.   The _M_B_R of the hard drive will locate the active partition and again,
  33.   will load the first sector of that partition. This sector contain a
  34.   tiny little program which knows a little bit more about the internals
  35.   of the _O_S living in that partition. It will proceed to load either
  36.   basic components of the system or simply a more sophisticated boot
  37.   loader which will finish the job.
  38.  
  39.   22..33..  TThhee ffllooppppyy''ss bboooott sseeccttoorr
  40.  
  41.   The boot sector of a floppy may be compared to the boot sector of the
  42.   active partition. It will proceed to load the OS living on the floppy.
  43.  
  44.   22..44..  AAnndd LLIILLOO
  45.  
  46.   _L_I_L_O is fairly flexible, here is why
  47.  
  48.   ╖  It can be installed either as a replacement for the _M_B_R or as a
  49.      boot sector, and still boot _L_i_n_u_x or most other OS on any drives in
  50.      any partitions.
  51.  
  52.   ╖  It can be installed on the boot sector of the floppy and still
  53.      perform its normal task, booting almost anything on the hard
  54.      drive(s).
  55.  
  56.   ╖  Beside the boot sector, it has no hidden file, nor use any special
  57.      partition. Further, its configuration files can be installed in any
  58.      partition, even unrelated to _L_i_n_u_x, even in a subdirectory of a _D_O_S
  59.      partition.
  60.  
  61.   ╖  It can boot several different kernel configuration and even several
  62.      different kernels.
  63.  
  64.   ╖  It can boot more than one _L_i_n_u_x installation.
  65.  
  66.   ╖  It can boot linux on any drive.
  67.  
  68.   22..55..  LLIILLOO,, LLiinnuuxx aanndd tthhee wwoorrlldd
  69.  
  70.   When installing _L_i_n_u_x on a system with several OS (other than _L_i_n_u_x),
  71.   take this as a rule of thumb. Manage to install and boot all the other
  72.   OSs first. They are less flexible.  _L_i_n_u_x will always find it way.
  73.  
  74.   33..  _L_I_L_O ccoonnffiigguurraattiioonn ddiiaalloogg
  75.  
  76.   Now that you know a little bit what _L_I_L_O can do, let see how you can
  77.   configure it using _L_i_n_u_x_c_o_n_f. The main configuration dialog is split
  78.   in sections. Here is an introduction to each.
  79.  
  80.   33..11..  GGlloobbaall ffeeaattuurreess
  81.  
  82.   This section deal with how to install _L_I_L_O.
  83.  
  84.   33..11..11..  DDiissaabblliinngg _L_I_L_O
  85.  
  86.   If you boot your _L_i_n_u_x system without _L_I_L_O, you may find _L_i_n_u_x_c_o_n_f
  87.   behavior a little bit annoying as it try to make sure _L_I_L_O is properly
  88.   setup-ed all the time. You can disable _L_I_L_O support from _L_i_n_u_x_c_o_n_f
  89.   anytime. This only affect _L_i_n_u_x_c_o_n_f though. This does nothing else. It
  90.   won't UN-install _L_I_L_O. It just say to _L_i_n_u_x_c_o_n_f
  91.  
  92.        "stop checking lilo".
  93.  
  94.   33..11..22..  IInnssttaallll bboooott sseeccttoorr oonn
  95.  
  96.   _L_I_L_O is brought to life by firing a tiny tiny program. This program
  97.   must be installed in a strategic location. The pop-up list of this
  98.   field offers you a list of valid choice is order of preference. If
  99.   _L_i_n_u_x is the aaccttiivvee partition it does not matter much. If it is not,
  100.   or your _L_i_n_u_x partition is not on the first hard drive, you must
  101.   install it on either the master boot record of the first drive, or on
  102.   a boot floppy.
  103.  
  104.   Note that installing the boot sector on a boot floppy is still pretty
  105.   fast as only one sector is read from it. All other files still lives
  106.   in the _L_i_n_u_x partition.
  107.  
  108.   33..11..33..  BBiiooss bboooott mmooddee
  109.  
  110.   Known to boot faster. Known not to work on some machines.  I have no
  111.   experience with it.
  112.  
  113.   33..11..44..  BBoooott ddeellaayy
  114.  
  115.   _L_I_L_O may boot right away or wait for some time, allowing you to
  116.   intercept the boot sequence. From there you can
  117.  
  118.   ╖  Boot a different OS or a different configuration.
  119.  
  120.   ╖  Pass some boot time parameter to the kernel.
  121.  
  122.   By pressing the SSHHIIFFTT and TTAABB keys at the same time the boot delay is
  123.   disable and ""bboooott::"" prompt will appear.
  124.  
  125.   A value of 50 is recommended.
  126.  
  127.   33..11..55..  MMeessssaaggee ffiillee
  128.  
  129.   You must put the path of a text file. Ideally, the text will be short
  130.   and will fill the screen, leaving the _L_I_L_O prompt at the bottom. This
  131.   is used for the boot floppies of some distributions.
  132.  
  133.   33..22..  DDeeffaauullttss
  134.  
  135.   This section provide the default configuration applying the to
  136.   different _L_i_n_u_x configuration following. Entering information here
  137.   avoid repeating it later.
  138.  
  139.   33..22..11..  RRoooott ppaarrttiittiioonn
  140.  
  141.   You must tell where your _L_i_n_u_x root partition is sitting.  A pop-up
  142.   list gives you a list of all partitions.
  143.  
  144.   33..22..22..  RRaamm ddiisskk ssiizzee
  145.  
  146.   Ram disk are used for installation boot disks. They are seldom used
  147.   for full configuration. Recent development of kernel modules have made
  148.   ram disk runtime configurable. A value of 0 disable the ram disk
  149.   feature.
  150.  
  151.   33..22..33..  BBoooott mmooddee
  152.  
  153.   Normally this flags is on. For _U_M_S_D_O_S installation, it is off. _U_M_S_D_O_S
  154.   installation will generally use _l_o_a_d_l_i_n to boot instead of _L_I_L_O
  155.   anyway.
  156.  
  157.   Unless you really what your doing, then left it to on. Here is why.
  158.   When _L_i_n_u_x boots, in read-only mode, it is allowed to do much
  159.   inspection of the partitions without touching them at all. This is
  160.   good especially if the boot follows a crash which has left the
  161.   partitions in a weird state.
  162.  
  163.   Why all the fuss about not touching the partition ? Well, _L_i_n_u_x
  164.   support multiple time stamps per file. One is the "last access date".
  165.   This means that the file system is changed (data is written to the
  166.   disk) just by reading files (which is exactly what happen at boot
  167.   time).
  168.  
  169.   This last access time stamp is pretty useful both becomes a nuisance
  170.   at boot time. The "read only" tells _L_i_n_u_x to drop this behavior.
  171.  
  172.   After the partition has been checked, the system will set back to
  173.   "read write" mode automatically.
  174.  
  175.   33..22..44..  BBoooott ooppttiioonnss
  176.  
  177.   Some drivers required some information to correctly initialized
  178.   themselves. For example, _L_i_n_u_x is probing only for one Ethernet
  179.   adaptor. If you have two, you can write in this field
  180.  
  181.                ether=11,0x300,eth1
  182.  
  183.   This will tell _L_i_n_u_x to check for a second adapter (the first being
  184.   eth0) at IIRRQQ 11 and IIOO 300 hex.
  185.  
  186.   There is a complete document about boot time configuration.  Note that
  187.   the forthcoming _L_i_n_u_x 1.4 will dramatically changed this has run time
  188.   modules will make a widespread appearance.
  189.  
  190.   The document can be found at ______________.
  191.  
  192.   33..33..  LLiinnuuxx sseettuuppss
  193.  
  194.   The default section is followed by several identical sections. Each
  195.   defines one _L_i_n_u_x boot configuration.  Each boot configuration repeats
  196.   all the parameter of the default section. You can simply override them
  197.   here.
  198.  
  199.   The first configuration will be the default one. This means that _L_I_L_O
  200.   will boot this one unless told differently (Using SHIFT TAB to stop
  201.   the boot process...).
  202.  
  203.   Only 3 fields differ from the default section.
  204.  
  205.   33..33..11..  DDeelleettee tthhiiss ccoonnffiigguurraattiioonn
  206.  
  207.   If you check this box, the configuration will disappear when you will
  208.   hit the aacccceepptt button.
  209.  
  210.   33..33..22..  KKeerrnneell iimmaaggee ffiillee
  211.  
  212.   This is the path of the kernel file which will boot for this
  213.   configuration. Note that one kernel file may participate to several
  214.   configurations.
  215.  
  216.   33..33..33..  LLaabbeell
  217.  
  218.   This is a short name identifying uniquely the configuration.  Given
  219.   that a kernel file may be shared by several configuration, we need a
  220.   unique key. This will be used when intercepting the boot process. _L_I_L_O
  221.   expect simply a label name and will boot the corresponding
  222.   configuration.
  223.  
  224.   33..44..  OOtthheerr ooppeerraattiinngg ssyysstteemm
  225.  
  226.   _L_I_L_O is able to boot almost anything. For each OOSS you want to boot,
  227.   simply specify the partition and a label.  _L_I_L_O simply load the boot
  228.   sector of that partition and launch it.
  229.  
  230.   44..  MMoovviinngg _L_I_L_O ccoonnffiigguurraattiioonn ffiilleess
  231.  
  232.   Sometime, one must play with _L_i_l_O's configuration file. The good news
  233.   is that, first, they are movable, the the next good news is that you
  234.   can tell Linuxconf about it.  Just go to the "List all configuration
  235.   files" menu, scroll to the //eettcc//lliilloo..ccoonnff line and select the eeddiitt
  236.   button. Enter the new path of the _L_I_L_O configuration file.  Be aware
  237.   that _L_I_L_O expect to find its configuration file in /etc/lilo.conf.
  238.   When moving the file, it has to go to a subdirectory holding a eettcc
  239.   subdirectory in which you will place the file lliilloo..ccoonnff.
  240.  
  241.   44..11..  WWhhyy mmoovviinngg _L_I_L_O aannyywwaayy ??
  242.  
  243.   There are different reason why one would want to do this. Here are
  244.   some.
  245.  
  246.   ╖  Your hard drive has more that 1024 cylinders and the root partition
  247.      goes beyond. _L_I_L_O uses the BIOS to load the kernel files (among
  248.      other things). If the kernel file lies above the 1024 cylinder
  249.      limit, _L_I_L_O won't be able to boot properly. In fact, LILO will tell
  250.      you right away at install time.
  251.  
  252.   ╖  You root partition is located on the third or fourth hard drive and
  253.      your BIOS (again) is too old and does not know about this second
  254.      IDE channel. In this case, LILO will warn you at install time that
  255.      some BIOS can't access the drive. At boot time you will get a bunch
  256.      of errors.
  257.  
  258.   44..22..  HHooww ttoo mmoovvee ?? WWhheerree ??
  259.  
  260.   On a machine dedicated to Linux, where you have a large drive with
  261.   more than 1024 cylinder, many people will create a smaller partition
  262.   for the basic OS and a larger for the data, insuring that all LILO
  263.   file fits under the 1024 cylinder limit.
  264.  
  265.   This is often annoying as it makes management more complex.  You end
  266.   up with two partition partly filled.
  267.  
  268.   Another solution is to create a very small partition (few megs) at the
  269.   beginning of the disk and reserve that for _L_I_L_O configuration and
  270.   kernel files. This way you can create a single large root partition
  271.   which is nicer to manage.
  272.  
  273.   (one can argue that creating a single large partition is a bad idea as
  274.   it puts all the eggs in the same bag. Given the design of the EEXXTT22
  275.   file system which distribute management information all over the
  276.   partition, with replication, I doubt this apply anymore).
  277.  
  278.   So you have a partition which fits the bill. It is all accessible from
  279.   the BIOS. Here are the steps to follow. Suppose this partition in
  280.   mount under the lliilloo directory and you want to put all configuration
  281.   files in the root of this partition.
  282.  
  283.   ╖  mkdir /lilo/etc
  284.  
  285.   ╖  cp /etc/lilo.conf /lilo/etc/lilo.conf
  286.  
  287.   ╖  mkdir /lilo/boot
  288.  
  289.   ╖  cp /boot/* /lilo/boot
  290.  
  291.   ╖  cd /
  292.  
  293.   ╖  tar cf - dev | (cd /lilo && tar xvf -)
  294.  
  295.   ╖  cp /vmlinuz /lilo
  296.  
  297.   You can activate this moved configuration like this
  298.  
  299.                /sbin/lilo -r /lilo
  300.  
  301.   And you can do this with Linuxconf by telling the //eettcc//lliilloo..ccoonnff is
  302.   now //lliilloo//eettcc//lliilloo..ccoonnff.  From now on, using Linuxconf, this should be
  303.   completely invisible to you or whoever manage your machine.
  304.  
  305.   55..  AAlltteerrnnaattiivveess ttoo LLIILLOO
  306.  
  307.   _L_i_n_u_x can be boot from a plain floppy or using loadlin.  All this is
  308.   unrelated to _L_I_L_O but it is good to know about it.  Assuming your
  309.   _L_i_n_u_x root partition is /dev/hdaX...
  310.  
  311.   55..11..  UUssiinngg aa ffllooppppyy
  312.  
  313.   To create a simple boot floppy, just to this
  314.  
  315.   ╖  cp zImage /dev/fd0
  316.  
  317.   ╖  rdev /dev/fd0 /dev/hdaX
  318.  
  319.   ╖  rdev -R /dev/fd0 1
  320.  
  321.   55..22..  UUssiinngg llooaaddlliinn
  322.  
  323.   To boot with loadlin (A _D_O_S program), just copy the kernel file to
  324.   your _D_O_S partition and type, at the _D_O_S prompt:
  325.  
  326.   loadlin zimage root=/dev/hdaX ro
  327.  
  328.